package cn.znzz.cjm.feign;

import cn.znzz.cjm.dto.VipCod;
import cn.znzz.cjm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;


@FeignClient(value = "AUTH-SERVER",fallbackFactory = VipCodFallBack.class)
@RequestMapping("/loginUser")
public interface VipCodFeignClient {
    @PostMapping("/register")
    @ResponseBody
    AjaxResult register(@RequestBody @Valid VipCod cod);
}
